package com.kucai.yifaqapp.util;

/**
 * Created by Administrator on 2019/4/1.
 */

public class LHClianxuan {

    public static int lian2(int number) {
        if (number == 2) {
            return 1;
        } else if (number == 3) {
            return 3;
        } else if (number == 4) {
            return 6;
        } else if (number == 5) {
            return 10;
        } else if (number == 6) {
            return 15;
        } else if (number == 7) {
            return 21;
        } else if (number == 8) {
            return 28;
        } else if (number == 9) {
            return 36;
        } else if (number == 10) {
            return 45;
        } else if (number == 11) {
            return 55;
        } else if (number == 12) {
            return 66;
        }
        return 0;
    }

    public static int lian3(int number) {
        if (number == 3) {
            return 1;
        } else if (number == 4) {
            return 4;
        } else if (number == 5) {
            return 10;
        } else if (number == 6) {
            return 20;
        } else if (number == 7) {
            return 35;
        } else if (number == 8) {
            return 56;
        } else if (number == 9) {
            return 84;
        } else if (number == 10) {
            return 120;
        } else if (number == 11) {
            return 165;
        } else if (number == 12) {
            return 220;
        }
        return 0;
    }

    public static int lian4(int number) {
        if (number == 4) {
            return 1;
        } else if (number == 5) {
            return 5;
        } else if (number == 6) {
            return 15;
        } else if (number == 7) {
            return 35;
        } else if (number == 8) {
            return 70;
        } else if (number == 9) {
            return 126;
        } else if (number == 10) {
            return 210;
        } else if (number == 11) {
            return 330;
        } else if (number == 12) {
            return 495;
        }
        return 0;
    }

    public static int lian5(int number) {
        if (number == 5) {
            return 1;
        } else if (number == 6) {
            return 6;
        } else if (number == 7) {
            return 21;
        } else if (number == 8) {
            return 56;
        } else if (number == 9) {
            return 126;
        } else if (number == 10) {
            return 252;
        } else if (number == 11) {
            return 462;
        } else if (number == 12) {
            return 792;
        }
        return 0;
    }
}
